package com.roncoo.education.db.dao;

import com.roncoo.education.db.entity.News;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface NewsDao {

    Long insert(News news);

    List<News> findByBean(News news);

    List<News> findByNewsByTitle(News news);
    News findById(Long id);

    Integer findByBeanCount(News news);

    void deleteById(News news);

    void deleteByBean(News news);

    void updateById(News news);

}
